<?php
/**
 * Created by PhpStorm.
 * User: white
 * Date: 2020/5/8
 * Time: 17:59
 */

namespace app\common\validate;


use think\Validate;

class Introduce extends Validate
{
    protected $rule = [
        'title|标题' => 'require',
        'author|作者' => 'require',
        'content|内容' => 'require'
    ];

    //验证场景
    protected $scene = [
        'list' => ['title','content'],
        'edit' => ['title','author','content']
    ];

}